const tools = {
    install(app) {
        const getSrc = (url) => {
            if (url[0] === '/') {
                url = url.substr(1);
            }
            return new URL(`../assets/${url}`, import.meta.url).href
        };
        app.config.globalProperties.getSrc = getSrc
    }
}

export default tools
